<?php
/* @var $this SiteController */
Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl.'/lib/jquery.unveil.js');	// image lazy load
Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl.'/lib/ckeditor/ckeditor.js');	// quick edit
Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl.'/lib/fancybox/jquery.fancybox.js');	// quick edit
Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl.'/lib/fancybox/jquery.fancybox.css');	// quick edit
?>

<div class="posts">
	<?php $this->widget('zii.widgets.CListView', array(
		'dataProvider'=>$dataProvider,
		'itemView'=>'/catalog/post/item',
		'summaryText' => '{start} - {end} / {count} items',
		'afterAjaxUpdate'=>'afterAjaxUpdate',
		'cssFile' => false,
		'pagerCssClass' => 'pagination',
		'pager'=>array(
			'nextPageLabel'=>'Next',
			'prevPageLabel'=>'Previous',
			'lastPageLabel'=>'Last',
			'firstPageLabel'=>'First',
			'cssFile' => false,
			'header'=>''
		),
	)); ?>
</div>

<script type="text/javascript">
//<![CDATA[
$(document).ready(function () {
	init();
});
//]]>
</script> 

<style>
form { margin: 0; font-size: 80% }
</style>